<fieldset><legend>推荐一个人</legend>
<form action="" method="post">
<span style="color:#9A9A9A">系统中存在以下用户，其中可能包含您正在推荐的人</span>
<!--<p style="text-align:left;background:#EEEEEA;padding:4px;">系统中存在以下用户，其中可能包含您正在推荐的人</p>-->
<table  cellpadding="1" border="0" width="100%">
<tr style="background:#EEEEEA;" ><td>用户</td><td>是否已推荐</td><td>是否您正在推荐的人</td></tr>
	{section name=nr loop=$userlist}
	<tr >
	<!--<td><img src="{$userlist[nr].Avatar}" align="absmiddle"/> <a href = "?mode=view&user={$userlist[nr].user_login}">{$userlist[nr].user_login}</a></td>-->	
	<td style="border-bottom:1px solid #ccc;"><a href = "user.php?login={$userlist[nr].user_login}" target="_blank"><img src="{$userlist[nr].Avatar}" align="absmiddle"/> {$userlist[nr].user_names}</a></td>
	<td style="border-bottom:1px solid #ccc;">{if $userlist[nr].digger_id > 0}由<a href = "user.php?login={$userlist[nr].digger_login}" target="_blank"><img src="{$userlist[nr].digger_Avatar}" align="absmiddle"/> {$userlist[nr].digger_names}</a>首次推荐，至今共{$userlist[nr].digger_digglinkvotes}人推荐，{$userlist[nr].digger_digglinkcomments}个评论，<a href="story.php?id={$userlist[nr].digger_digglinkid}" target="_blank">查看</a>{else}还没有人推荐{/if}</td>
	<td style="border-bottom:1px solid #ccc;">是，<input type="button" value="推荐:)" id="reco" name="reco" style="text-decoration:none;background:#fff;border:1px solid #ccc;color:#ccc;margin-right:1px;padding:2px 5px;color:#774525;" onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" onclick="{if $userlist[nr].digger_id > 0}this.form.action.value = 'alreadydigg';this.form.digglinkid.value = {$userlist[nr].digger_digglinkid};{else}this.form.usernames.value = '{$userlist[nr].user_names}';this.form.todigguserid.value = {$userlist[nr].user_id};this.form.action.value = 'diggexistuser';{/if}this.form.submit();" />
	
	</td>
	</tr>
	{/section}
</table>

<div id="new" style="display:none" >
<label>名字</label><input type="text" name="usernames" value="{$usernames}" />
<span id="usernamescheckitvalue" style="color: red">{$namescheck}</span>
<label>邮件</label><span style="color:#9A9A9A">系统将使用此邮件地址告知对方您对他(她)的推荐，此邮件地址默认隐藏，对外不公开</span><br><input type="text" name="email"  value="{$email}"onblur="checkvalue('email_name', this.form, this.form.email)" />
<span id="emailcheckitvalue"></span>
<label>网址</label><span style="color:#9A9A9A">请输入对方的博客或个人空间等的地址，以便大家了解您推荐的人</span>
<br><input style="width:300px" type="text" name="site" value="{$site}" />
<label>标签</label><span style="color:#9A9A9A">对方的标签，标签间使用逗号隔开，如 产品设计师,系统架构,移动互联网</span><br><input  type="text" name="tags" style="width:450px" value="{$tags}" />
<label>标题</label><span style="color:#9A9A9A">请用一句话描述对方，系统将此描述和对方的名字合成为此次推荐的标题</span><br><input type="text" name="title"  style="width:450px" value="{$title}" /><span id="titlecheckitvalue" style="color: red">{$titlecheck}</span>
<label>简要描述/评论</label>
<textarea name="desc" rows="10" cols="50" id="desc" WRAP=SOFT>{$comment}</textarea>
<input type="hidden" id="cur_page" name="cur_page" value={$cur_page} />
<input type="hidden" id="page" name="page" value=0 />
<input type="hidden" id="action" name="action" value="checkduplicate" />
<input type="hidden" id="lid" name="lid" value={$lid} />
<input type="hidden" id="group" name="group" value="{$group}" />
<input type="hidden" id="digglinkid" name="digglinkid" value=0 />
<input type="hidden" id="todigguserid" name="todigguserid" value=0 />
<br><input type="submit" value="推荐:)">
</div>
{php} 
Global $db, $main_smarty, $rows, $top_users_size, $offset;
//do_pages($rows, $top_users_size, ''); 
submit_user_do_pages($rows, $top_users_size, ''); 
{/php}
<br>
<input type="button" onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" onclick="this.form.action.value='createanddigg';this.form.submit();" value="以上没有我正在推荐的人" style="text-decoration:none;background:#fff;border:1px solid #ccc;margin-right:1px;padding:2px 5px;color:#774525" align="right"  /> 

</div>
</form>
<hr/>

</fieldset>